# !/usr/bin python3
# encoding: utf-8 -*-
# @file     : complains_apis.py
# @author   : 沙陌 Matongxue_2
# @Time     : 2024/1/13 15:39
# @Copyright: 北京码同学


from api.base_api import BaseManagerApi


class ToAppealComplainsApi(BaseManagerApi):

    # 接口的基本信息，统一封装在init函数中
    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/admin/trade/order-complains/{id}/to-appeal'
        self.method = 'put'

class ComplainsCommunicationApi(BaseManagerApi):

    # 接口的基本信息，统一封装在init函数中
    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/admin/trade/order-complains/{id}/communication'
        self.method = 'put'
        self.data = {
            "content":"这是管理员对话内容"
        }
class CompleteCommunicationApi(BaseManagerApi):

    # 接口的基本信息，统一封装在init函数中
    def __init__(self,id):
        super().__init__()
        self.url = f'{self.host}/admin/trade/order-complains/{id}/complete'
        self.method = 'put'
        self.data = {
            "arbitration_result":"没啥意见，你们看着办吧"
        }
